package org.zjt.agent.runtime.reloader;

import java.lang.instrument.UnmodifiableClassException;
import java.util.Optional;

/**
 * Description:
 *
 * @author juntao.zhang
 * Date: 2018-10-24 4:06 PM
 * @see
 */
public interface ClassReloader {

     Optional<byte[]> redefineClass(String name,byte[] classfileBuffer);

    void startup() throws UnmodifiableClassException;
}
